from fastapi import APIRouter
from controller import CrealMarketStatic, CrealMarketAmount

router = APIRouter()


@router.get("/get_realMarket_static/")
async def get_realMarket_data(dateStr: str = ''):
    print(dateStr)
    result = CrealMarketStatic.getRealMarketStatic(dateStr)
    return result


@router.get("/get_realMarket_amount/")
async def get_realMarketAmount_data(dateStr: str = ''):
    print(dateStr)
    result = CrealMarketAmount.getRealMarketAmount(dateStr)
    return result
